<header class="main-header">

    <button class="main-sidebar-toggle" type="button" data-toggle="mainSidebarCollapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>

    <div class="title hidden-xs">
        <a href="/admin/main" target="mainFrameContent">
            <span class="desc">
                得闲技术
           </span>
        </a>
    </div>


    [#--    <div class="search hidden-xs">--]
    [#--        <form action="/admin/list" method="get">--]
    [#--            <input name="searchProperty" type="hidden" value="name">--]
    [#--            <div class="search-box">--]
    [#--                <i class="iconfont icon-search"></i>--]
    [#--                <input name="searchValue" class="form-control" type="text" placeholder="常用搜索" autocomplete="off"--]
    [#--                        x-webkit-speech="x-webkit-speech" x-webkit-grammar="builtin:search">--]
    [#--            </div>--]
    [#--        </form>--]
    [#--    </div>--]

    <ul class="nav pull-right">
        <li class="dropdown">
            <a class="dropdown-toggle" href="javascript:;" data-toggle="dropdown" title="${admin.name!}">
                [#if admin??]
                    [#if admin.avatar?? && admin.avatar != ""]
                        <img src="${imageHost}${admin.avatar!}" onerror="this.src='${base}/resources/admin/images/default_avatar.png'" />
                    [#else]
                        <img src="${base}/resources/admin/images/default_avatar.png" />
                    [/#if]
                [#else]
                    <img src="${base}/resources/admin/images/default_avatar.png" />
                [/#if]


            </a>
            <ul class="dropdown-menu dropdown-menu-right">
                <li>
                    <a href="${base}/admin/profile/modify_password" target="mainFrameContent">修改密码</a>
                </li>
                <li>
                    <a href="${base}/admin/profile/update" target="mainFrameContent">账户设置</a>
                </li>
            </ul>
        </li>
        <li>
            <a id="mainHeaderLogout" class="logout" href="javascript:;">
                <i class="iconfont icon-exit"></i> 注销
                <form method="POST" action="${base}/logout" id="logoutForm">
                </form>
            </a>
        </li>
    </ul>
</header>